<?php
namespace Depart\Controller;
use Think\Controller;

class IndexController extends Controller{

    public function index() {
    	$nav_data=D('AdminNav')->getTreeData('level','order_number,id');
        $assign=array(
            'data'=>$nav_data
            );
            
        $this->assign('data',$assign);
        $this->display();
    }
    public function index1(){
        $this->display();
    }
    public function modal(){
    	$this->display('modal');
    }
    public function input(){
    	$data=I('post.');
    	dump($data);
//    	date_default_timezone_set(PRC);
//		$nowtime=date("Y-m-d G:i:s");
//		$dateline=strtotime($nowtime);	
//		$nowtime=date('H:i:s',$dateline); 
		$dateline=strtotime($data['date']);
		$nowtime=date('Y.m.d',$dateline);
		echo "nowtime:".$nowtime."<br>";
		echo "dateline:".$dateline;
    }
}
?>